package com.tzy.dishes;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
@MapperScan("com.tzy.dishes.mapper")
@SpringBootApplication
@EnableDiscoveryClient//开启发现服务
@EnableFeignClients//开启远程调用
//@EnableCircuitBreaker//开启熔断降级
@EnableCaching//开启基于注解的缓存
public class DishesApplication {

    public static void main(String[] args) {
        SpringApplication.run(DishesApplication.class, args);
    }

}
